#ifndef TAIYUNVIEW_H
#define TAIYUNVIEW_H

#include <functionalnetwork.h>
#include <string>
#include <views/taiyun.h>
#include <views/abstractView.h>
#include <heatmap.h>
#include <QMouseEvent>

namespace Ui {
    class TaiyunView;
}

class TaiyunView : public AbstractView {
    Q_OBJECT

private slots:
	//void ontableSelectChanged();
	 void resizeEvent(QResizeEvent *ev);
	 void on_elementSelected(int row, int col);
	 void on_elementClicked(int row, int col);
	 void on_currentIndexChanged(int);

public:
    TaiyunView(QWidget *parent = 0);
    ~TaiyunView();

    void setNetwork(FunctionalNetwork *netw);

protected:
    void changeEvent(QEvent *e);
	void on_matrixChanged();
	void updateView();

private:
	void createPixMap();
	void setHeatmapNetwork();

    Ui::TaiyunView *ui;
	HeatMap *heatmap;
    bool isSelecting;
    //bool loaded;
};

#endif // TAIYUNVIEW_H
